package com.springboot.prac.date;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Desc:
 * @Author: siyuanlong
 * @Date: 2022/2/27 11:06
 */
public class DatePrac {
    public static void main(String[] args) throws ParseException {
        /*String dateString = "20160901";
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMM");
        System.out.println("result:" + dateFormat.parse(dateString));*/
        System.out.println(new Date().toString());
    }
}
